<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/4/6
  Time: 13:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!doctype html>
<html lang="zh">
<head>
    <title>编辑服务机构</title>
    <%@include file="/common/header.jspf" %>
    <style type="text/css">
        .enclosure{width: 576px;height: 100px}
    </style>
    <script type="text/javascript">
        var serviceType = '${org.serviceType}';
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/occupationalHealth/hseServiceOrg/edit.js"></script>
    <style type="text/css">
        .enclosure{
            width: 576px;
        }
        .attachment{
            width: auto;
        }
    </style>
</head>
<body>
<div class="form-wrap">
    <form id="orgEditForm" method="post">
        <input type="hidden" id="orgid" name="id" value="${org.id}"/>
        <table cellspacing="0" cellpadding="0" class="watch-table" style="width: 700px">
            <tr>
                <td class="watch-td">服务机构名称<span>*</span></td>
                <td colspan="8" class="watch-tdA">
                    <input class="easyui-textbox" type="text" name="serviceName" value="${org.serviceName==null?"":org.serviceName}" data-options="required:true" style="width: 576px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">服务机构类型<span>*</span></td>
                <td colspan="3">
                    <select class="easyui-combobox"name="serviceType" id="serviceType" style="width: 240px"
                            data-options="required:true,editable:false,selectOnNavigation:true">
                    </select>
                </td>
                <td colspan="2" class="watch-td">资质等级</td>
                <td colspan="3" class="watch-tdA">
                    <input class="easyui-textbox" type="text" value="${org.aptitudeGrade==null?"":org.aptitudeGrade}" name="aptitudeGrade" style="width: 240px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">资质号</td>
                <td colspan="8" class="watch-tdA">
                    <input class="easyui-textbox" type="text" name="aptitudeNumber" value="${org.aptitudeNumber==null?"":org.aptitudeNumber}"  style="width: 576px">
                </td>
            </tr>
            <tr>
                <td class="watch-td">开始日期<span>*</span></td>
                <td colspan="3">
                    <input type="text" name="startTime" class="easyui-datebox"  value="${org.startTime==null?"":org.startTime}" style="width: 240px" data-options="required:true,editable:false"/>
                </td>
                <td colspan="2" class="watch-td">结束日期<span>*</span></td>
                <td colspan="3" class="watch-tdA">
                    <input type="text" name="endTime" class="easyui-datebox" value="${org.endTime==null?"":org.endTime}"  style="width: 240px" data-options="required:true,editable:false"/>
                </td>
            </tr>
            <tr>
                <td class="watch-td">备注</td>
                <td colspan="8" class="watch-tdA">
                    <input class="easyui-textbox" type="text" style="height: 100px;width: 576px" value="${org.remarks==null?"":org.remarks}"  name="remarks" data-options="multiline:true">
                </td>
            </tr>
            <tr>
                <td class="watch-td" style="height: 120px">合同附件</td>
                <td colspan="8" class="watch-tdA">
                    <accessory:accessorySimple permission="write" packageKey="orgfile" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                                               accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                </td>
            </tr>
        </table>
    </form>
    <div class="form-button">
        <a href="javascript:void(0)" onclick="submitForm()" class="easyui-linkbutton"
           data-options="iconCls:'fa fa-save fa-lg'">保存</a>
    </div>
</div>
</body>
</html>
